package com.zby.enums;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum AuditEnum {
    PENDING(0,"待审核"),
    APPROVED(1,"已通过"),
    REJECTED(2,"已驳回"),
    TO_BE_RELEASED(3,"待发布");
    @EnumValue
    private Integer code;
    @JsonValue
    private String message;
    AuditEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
